package p13.p1332;

import java.util.Scanner;

public class CharacterTJ {
    public static void main(String[] args) {

        int bigCont = 0;
        int smallCount = 0;
        int numberCount = 0;
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入字符串:");
        String s = scanner.nextLine();
        char[] sa = s.toCharArray();
        //System.out.println(sa);
        for (int i = 0; i <sa.length ; i++) {
            if (Character.isUpperCase(sa[i])) {
                bigCont++;
            }else if (Character.isLowerCase(sa[i])){
                smallCount++;
            }else if (Character.isDigit(sa[i])){
                numberCount++;
            }
        }
        System.out.println("numberCount = " + numberCount);
        System.out.println("smallCount = " + smallCount);
        System.out.println("bigCont = " + bigCont);
    }
}
